From: Scott Buchanan Date: Fri, 26 May 2023 15:20:58 +0000 (+0100) Subject: screenshot: Allow any enter key activate capture X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~246 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=95daa577cfea6f7846dd58d112b710a00334c66a;p=gnome-shell.git screenshot: Allow any enter key activate capture We currently only consider enter/return on the main keyboard area, but not on the numpad. Fix that. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6128 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index af031e432..18926bf62 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2052,6 +2052,7 @@ export const ScreenshotUI = GObject.registerClass({ vfunc_key_press_event(event) { const symbol = event.get_key_symbol(); if (symbol === Clutter.KEY_Return || symbol === Clutter.KEY_space || + symbol === Clutter.KEY_KP_Enter || symbol === Clutter.KEY_ISO_Enter || ((event.get_state() & Clutter.ModifierType.CONTROL_MASK) && (symbol === Clutter.KEY_c || symbol === Clutter.KEY_C))) { this._onCaptureButtonClicked();